#ifndef __PARK_PROBER_COMMU_H_
#define __PARK_PROBER_COMMU_H_

#define PARK_PROBER_SEARCH_PORT 12000
#define PARK_PROBER_LISTEN_PORT 12001

#define PARK_PROBER_ONLINE 1
#define PARK_PROBER_OFFLINE 0
#define PARK_PROBER_MAX_SENSOR 50


typedef struct sensor_trap_a
{
	int sensor_id;
	int sensor_stat;
}S_SENSOR_TRAP, *PS_SENSOR_TRAP;

#define SENSOR_TRAP_TYPE_STATCHANGE 0x1
#define SENSOR_TRAP_TYPE_DATAREQ 0x2
#define SENSOR_TRAP_TYPE_REQ 0x3

typedef struct sensor_trap_head_a
{
	int config_id;
	int trap_type;
	int prober_id;
	char prober_addr[20];
	int sensor_num;
	char sensor[0];
}S_SENSOR_TRAP_HEAD, *PS_SENSOR_TRAP_HEAD;

typedef struct park_prober_head_s
{
	int config_id;
	int probr_id;
	char agent_addr[20];
	int sensor_num;
	char sensor[0];
}S_PARK_PROBER_HEAD, *PS_PARK_PROBER_HEAD;

int park_prober_scan();
void park_prober_modify_stat();
int park_prober_is_online(PS_PROBER pstProber);
int park_prober_send_config_packet(PS_PROBER pstProber);
void park_prober_send_req();
void park_prober_init();
void park_prober_destroy();


#endif
